package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetCalculatePriceReqDto;
import com.emm.yixun.common.app.GetCalculatePriceResDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.GetCalculatePriceReqVo;
import com.emm.yixun.system.service.app.UserServiceAppFacade;

/**
 * （6）算价接口(getCalculatePrice)
 * @author Administrator
 *
 */
@Service("getCalculatePriceHander")
public class GetCalculatePriceHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private UserServiceAppFacade userServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetCalculatePriceReqVo req = (GetCalculatePriceReqVo)reqDto;
		GetCalculatePriceReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetCalculatePriceResDto> res = new BaseResponseDTO<GetCalculatePriceResDto>();
		res.setResData(userServiceAppFacade.getCalculatePrice(reqDto1));
		return res;
	}
	
}
